home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / kupidon-strike.swf / scripts / frame_210 / PlaceObject2_248_413 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2011-12-21  |  732 b   |  30 lines

  1. onClipEvent(load){
  2.    function rem()
  3.    {
  4.       _root.boom(_X,_Y,colour);
  5.       this._visible = false;
  6.       this.active = false;
  7.       _root.hearts_beat = _root.hearts_beat + 1;
  8.       _root.level_score += 10;
  9.       i = 0;
  10.       while(i < _root.stage_objects.length)
  11.       {
  12.          if(_root.stage_objects[i] == this._name)
  13.          {
  14.             _root.todel_objects.push[i];
  15.          }
  16.          i++;
  17.       }
  18.    }
  19.    move_x = _X;
  20.    move_y = _Y;
  21.    move_direction = 1;
  22.    c_path = move_path;
  23.    tp = "heart";
  24.    active = true;
  25.    colour = _root.colors_array[random(_root.colors_array.length)];
  26.    gotoAndStop(colour);
  27.    _root.stage_objects.push(this._name);
  28.    _root.level_objects.push(this._name);
  29. }
  30.